home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue.arc / TVBNAME.C < prev    next >
C/C++ Source or Header  |  1990-01-09  |  1KB  |  31 lines

  1. /*================================================*/
  2. /* TVBNAME.C                                      */
  3. /*                                                */
  4. /* (c) Copyright 1988 Ralf Brown                  */
  5. /*     All Rights Reserved                        */
  6. /* May be freely copied for noncommercial use,    */
  7. /* provided that this copyright notice remains    */
  8. /* intact and any changes are indicated in the    */
  9. /* comment blocks preceding functions             */
  10. /*================================================*/
  11.  
  12. #include <string.h>
  13. #include "tvapi.h"
  14.  
  15. /*================================================*/
  16. /* TVmbx_name  give mailbox object a global name  */
  17. /*   Ralf Brown 5/6/88                            */
  18. /*================================================*/
  19.  
  20. void pascal TVmbx_name(OBJECT mbx,char *name)
  21. {
  22.    PARMLIST2 p ;
  23.  
  24.    p.num_args = 2 ;
  25.    p.arg[0] = (DWORD) (char far *) name ;
  26.    p.arg[1] = (DWORD) strlen(name) ;
  27.    TVsendmsg(SETNAME_MSG, mbx?TOS:MAILME, mbx, (PARMLIST *)&p) ;
  28. }
  29.  
  30. /* End of TVBNAME.C */
  31.